package com.guoyansoft.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author 朱文静
 * 店铺实体
 */

public class Shop {
//    店铺主键id
    private Integer id;
//    店铺名称
    private String name;
//    店铺负责人
    private String legalPerson;
//    店铺创建时间
    @JsonFormat(pattern = "YYYY-MM-dd",timezone = "GMT+8")
    private Date creatTime;
//    店铺地址
    private String address;
//    备注
    private String remark;
//    店铺类型实体
    private ShopType shopType;

    public Shop() {
    }

    public Shop(Integer id, String name, String legalPerson, Date creatTime, String address, String remark) {
        this.id = id;
        this.name = name;
        this.legalPerson = legalPerson;
        this.creatTime = creatTime;
        this.address = address;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String adress) {
        this.address = adress;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public ShopType getShopType() {
        return shopType;
    }

    public void setShopType(ShopType shopType) {
        this.shopType = shopType;
    }

    @Override
    public String toString() {
        return "Shop{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", legalPerson='" + legalPerson + '\'' +
                ", creatTime=" + creatTime +
                ", address='" + address + '\'' +
                ", remark='" + remark + '\'' +
                ", shopType=" + shopType +
                '}';
    }
}
